//
//  MycolorModel.m
//  帮惠Mall
//
//  Created by reew on 2017/9/23.
//  Copyright © 2017年 reew. All rights reserved.
//

#import "MycolorModel.h"

@implementation MycolorModel
-(instancetype)initMycolorModelWithDictionary:(NSDictionary *)dic{
    if (self = [super init]) {
        self.colorName = dic[@"name"];
        self.colorHex = dic[@"value"];
    }
    return self;
}
-(instancetype)initModelWithColorName:(NSString *)name{
    if (self = [super init]) {
        self.colorName = name;
        self.colorHex = @"";
    }
    return self;
}
@end
